<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>A*寻路算法 - 启发式搜索详解</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            line-height: 1.8;
            color: #333;
        }
        h1, h2, h3, h4 {
            font-family: 'Noto Serif SC', serif;
            font-weight: 700;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .code-block {
            background: #1e293b;
            border-radius: 0.5rem;
            color: #e2e8f0;
        }
        .code-keyword {
            color: #f472b6;
        }
        .code-comment {
            color: #94a3b8;
        }
        .code-string {
            color: #86efac;
        }
        .code-number {
            color: #fbbf24;
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .path-node {
            transition: all 0.3s ease;
        }
        .path-node:hover {
            transform: scale(1.1);
            z-index: 10;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-6 md:px-16 lg:px-32">
        <div class="container mx-auto max-w-5xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">A*寻路算法</h1>
                    <p class="text-xl mb-8 opacity-90">启发式搜索的艺术与科学</p>
                    <div class="flex items-center space-x-4">
                        <span class="px-4 py-2 bg-white bg-opacity-20 rounded-full text-sm font-medium">路径规划</span>
                        <span class="px-4 py-2 bg-white bg-opacity-20 rounded-full text-sm font-medium">AI算法</span>
                        <span class="px-4 py-2 bg-white bg-opacity-20 rounded-full text-sm font-medium">最优解搜索</span>
                    </div>
                </div>
                <div class="md:w-1/2">
                    <div class="relative">
                        <div class="relative z-10 w-full h-64 bg-white bg-opacity-10 backdrop-blur rounded-xl p-4">
                            <div class="grid grid-cols-3 gap-2 h-full">
                                <div class="bg-white bg-opacity-20 rounded-lg flex items-center justify-center path-node" style="grid-column: 1; grid-row: 1;">
                                    <span class="text-xl font-bold">起点</span>
                                </div>
                                <div class="bg-white bg-opacity-10 rounded-lg flex items-center justify-center path-node" style="grid-column: 2; grid-row: 1;">
                                    <i class="fas fa-arrow-right text-white"></i>
                                </div>
                                <div class="bg-white bg-opacity-10 rounded-lg flex items-center justify-center path-node" style="grid-column: 3; grid-row: 2;">
                                    <i class="fas fa-arrow-down text-white"></i>
                                </div>
                                <div class="bg-white bg-opacity-10 rounded-lg flex items-center justify-center path-node" style="grid-column: 2; grid-row: 3;">
                                    <i class="fas fa-arrow-left text-white"></i>
                                </div>
                                <div class="bg-white bg-opacity-20 rounded-lg flex items-center justify-center path-node" style="grid-column: 1; grid-row: 3;">
                                    <i class="fas fa-arrow-up text-white"></i>
                                </div>
                                <div class="bg-white bg-opacity-30 rounded-lg flex items-center justify-center path-node" style="grid-column: 3; grid-row: 1;">
                                    <span class="text-xl font-bold">终点</span>
                                </div>
                            </div>
                        </div>
                        <div class="absolute -inset-2 bg-white bg-opacity-20 rounded-xl blur-lg"></div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Content Section -->
    <section class="py-16 px-6 md:px-16 lg:px-32">
        <div class="container mx-auto max-w-5xl">
            <div class="bg-white rounded-xl shadow-lg overflow-hidden mb-12